﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using Autodesk.Revit.DB;

using Autodesk.Revit.Attributes;

using Autodesk.Revit.UI;
using RApplication = Autodesk.Revit.ApplicationServices.Application;
using Autodesk.Revit.DB.Plumbing;
using Autodesk.Revit.DB.Structure;
using Autodesk.Revit.UI.Selection;
using Autodesk.Revit.ApplicationServices;
using Autodesk.Revit.DB.ExtensibleStorage;
using Autodesk.Revit.Utility;

using Autodesk.Revit.DB.Architecture;

using Autodesk.Revit.DB.Mechanical;

using Autodesk.Revit.DB.Electrical;


namespace YJKElecSettings
{
    public partial class ElecSettingsDlg : System.Windows.Forms.Form
    {
        string[] nameG = new string[10];
        public ElecSettingsDlg()
        {
            InitializeComponent();
        }

        private void ElecSettingDlg_Load(object sender, EventArgs e)
        {

        }
        public void inittree()
        {

            TreeNode ii;
            ii = treeView1.Nodes.Add("Wire",nameG[0]);
            ii.Nodes.Add("WireType", "导线类型");
            ii.Nodes.Add("Cable", "电缆");
            ii=treeView1.Nodes.Add("Conduit",nameG[1]);
             ii.Nodes.Add("WireType", "线管类型");
            ii.Nodes.Add("Cable", "线管配件");
            
            ii=treeView1.Nodes.Add("WireThroughConduit",nameG[2]);

            ii=treeView1.Nodes.Add("CableTray",nameG[3]);
            ii.Nodes.Add("CableTraySetting", nameG[3]);
            ii=treeView1.Nodes.Add("LightingAndEarthing",nameG[4]);
             ii.Nodes.Add("CableTraySetting", "电缆桥架设置");
             ii = treeView1.Nodes.Add("LightingAndEarthingProof", nameG[5]);
                  ii.Nodes.Add("CableTraySetting", "防雷接地设置");
            treeView1.ExpandAll();


        }
        public void initListNameArray()
        {

            nameG[0] = "导线设置";
            nameG[1] = "线管设置";
            nameG[2] = "导线穿管";
            nameG[3] = "电缆桥架设置";
            nameG[4] = "防雷接地";
        }
    }

}
